package com.koron.order.linedefect.base.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.linedefect.base.bean.vo.DefectExecuteVO;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

public interface ExecuteService extends CommonService {

    String insertOrUpdate(SessionFactory factory, DefectExecuteVO defectExecuteVO);

    int insertBatch(SessionFactory factory, List<DefectExecuteVO> defectExecuteVOList, Boolean isCommit);

    int deleteByOrderId(SessionFactory factory, String orderId);

    int deleteByOrderExecuteId(SessionFactory factory, String orderExecuteId);

    List<DefectExecuteVO> queryListByOrderId(SessionFactory factory, String orderId);

    DefectExecuteVO queryListByOrderExecuteId(SessionFactory factory, String executeId);

    List<String> querySubmitUserListByOrderId(SessionFactory factory, String orderId);

}
